package com.sinocare.report.controller;

import com.sinocare.common.entity.vo.MonData;
import com.sinocare.common.result.Result;
import com.sinocare.common.result.ResultCode;
import com.sinocare.report.service.MonDataService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/MonData")
public class MonDataController {
    @Resource
    private MonDataService monDataService;

    @RequestMapping("monda")
    public Result ss(){
        List<MonData> monData = monDataService.selectMonData();
        return Result.ok(ResultCode.SUCCESS,monData);
    }
}
